package com.zbs.framework.dao.role.model;

import com.zbs.framework.dao.role.entity.Role;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class RoleListItem{

    private Integer id;
    /**
     * 角色名
     */
    private String name;
    /**
     * 禁用标识
     */
    private Integer enabled;
    /**
     * 可编辑标识
     */
    private Integer editable;
    /**
     * 描述
     */
    private String description;

    public RoleListItem(Role role) {
        this.id = role.getId();
        this.name = role.getName();
        this.enabled = role.getEnabled();
        this.editable = role.getEditable();
        this.description = role.getDescription();
    }
}
